package com.ruoyi.warehouse.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 仓库信息管理对象 zn_warehouse
 * 
 * @author ruoyi
 * @date 2023-06-13
 */
public class ZnWarehouse extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 父id */
    @Excel(name = "父id")
    private Long pid;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String name;

    /** 是否删除（0：正常，1：已删除） */
    @Excel(name = "是否删除", readConverterExp = "0=：正常，1：已删除")
    private Integer isDelete;

    /** 修改者id */
    @Excel(name = "修改者id")
    private Long updateId;

    /** 创建者id */
    @Excel(name = "创建者id")
    private Long createId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }
    public void setUpdateId(Long updateId) 
    {
        this.updateId = updateId;
    }

    public Long getUpdateId() 
    {
        return updateId;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("name", getName())
            .append("createTime", getCreateTime())
            .append("isDelete", getIsDelete())
            .append("updateTime", getUpdateTime())
            .append("updateId", getUpdateId())
            .append("createId", getCreateId())
            .append("remark", getRemark())
            .toString();
    }
}
